home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 17584 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  959 b 

  1. Path: news.cis.ohio-state.edu!usenet
  2. From: gormley@polka.cis.ohio-state.edu
  3. Newsgroups: comp.lang.c++
  4. Subject: No $watch variable set.
  5. Date: 16 Apr 1996 16:43:49 GMT
  6. Organization: The Ohio State University, CIS Department
  7. Message-ID: <4l0io5$e3k@news.cis.ohio-state.edu>
  8. NNTP-Posting-Host: polka.cis.ohio-state.edu
  9.  
  10.     Perhaps someone knows what is going on with my program. I don't have
  11.     any problems compiling the program. But when I run the program, the 
  12.     only output I get is "No $watch variable set." Does anyone know what
  13.     this means? 
  14.  
  15.     #include <iostream.h>
  16.  
  17.     #define PRECISION 40
  18.  
  19.     int 
  20.     main (void)
  21.     {
  22.         cout.precision (PRECISION);
  23.     
  24.         long double error, x_value;
  25.  
  26.         error = 0.0000000000009094947017729265213537093015783114240786L;
  27.         x_value = .5000;
  28.  
  29.         cout << error;
  30.  
  31.         return 0;
  32.     }
  33.  
  34.     I used g++ to compile the program, with the following line;
  35.     'g++ -olog -log.cpp'
  36.  
  37.     Thanks in advance for any help.
  38.  
  39.             - christopher gormley :-)
  40.